#!/bin/bash

version::update() {
  PREV=$ZMICRO_VERSION

  config::load_core_mod

  LATEST=$ZMICRO_VERSION

  # echo "Load Version: $ZMICRO_VERSION"
  # echo "BBB: $PREV => $LATEST"
  log::version $PREV $LATEST

  echo $LATEST
}

version::timestamp() {
  cd $ZMICRO_HOME
  git show -s --format=%cI
}

version::get() {
  config::load_core_mod

  echo $ZMICRO_VERSION
}

export -f version::get
export -f version::timestamp

export -f version::update
